package com.youku.collector;

public class Record {

	private String fromUrl;

	private String toUrl;

	/**
	 * 角色 consumer or provider
	 */
	private String role;

	/**
	 * 属性名
	 */
	private String name;

	/**
	 * 属性值
	 */
	private double value;

	public Record(String fromUrl, String toUrl, String role, String name, double value) {
		super();
		this.fromUrl = fromUrl;
		this.toUrl = toUrl;
		this.role = role;
		this.name = name;
		this.value = value;
	}

	public String getFromUrl() {
		return fromUrl;
	}

	public void setFromUrl(String fromUrl) {
		this.fromUrl = fromUrl;
	}

	public String getToUrl() {
		return toUrl;
	}

	public void setToUrl(String toUrl) {
		this.toUrl = toUrl;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getValue() {
		return value;
	}

	public void setValue(double value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Record [fromUrl=" + fromUrl + ", toUrl=" + toUrl + ", role=" + role + ", name=" + name + ", value="
				+ value + "]";
	}
}
